package ru.papergames.battleserver.model.battle.npc;

/**
 * @author Alexander Troshanin
 */
public enum LineVector {

    ALPHA_0(1, 0, 1),
    ALPHA_45(1, 1, 2),
    ALPHA_90(0, 1, 4),
    ALPHA_135(-1, 1, 8),
    ;

    private final int dx;
    private final int dy;
    private final int bitMask;

    LineVector(int dx, int dy, int bitMask) {
        this.dx = dx;
        this.dy = dy;
        this.bitMask = bitMask;
    }

    public int getDx() {
        return dx;
    }

    public int getDy() {
        return dy;
    }

    public int getBitMask() {
        return bitMask;
    }
}
